package com.zj.service.impl;

import com.zj.dao.UserDao;
import com.zj.pojo.User;
import com.zj.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {

    @Autowired  //依赖注入 必写
    @Qualifier("userDao") //当有 同类型的 实现类时 补充注入的名字
    private UserDao userDao;
    public User selectById() {
        return userDao.selectById();
    }
}
